var Action = require("../apiaction");
var Utility = require("../Utility/utility.js");
exports.budgetRouter = function(router){

    /*
    *  房屋类型
    */
    router.all('/budget/housetype',function(req,res){


            Utility.getMenuList(req,res,function(menulist) {
                res.render('budget/housetype', {
                    layout: 'pte/layout-pte',
                    active: 'housetype',
                    jscript: 'budget/housetype',
                    menulist:menulist,
                    comparam:Utility.returnCommonParam(req,res)
                })

            });

        });

    /*
     *  单位信息
     */
    router.all('/budget/unit',function(req,res){


        Utility.getMenuList(req,res,function(menulist) {
            res.render('budget/unit', {
                layout: 'pte/layout-pte',
                active: 'unit',
                jscript: 'budget/unit',
                menulist:menulist,
                comparam:Utility.returnCommonParam(req,res)
            })

        });

    });

    /*
     *  材料类别
     */
    router.all('/budget/material_type',function(req,res){


        Utility.getMenuList(req,res,function(menulist) {
            res.render('budget/material_type', {
                layout: 'pte/layout-pte',
                active: 'material_type',
                jscript: 'budget/material_type',
                menulist:menulist,
                comparam:Utility.returnCommonParam(req,res)
            })

        });

    });

    /*
    *
    */
    router.all('/budget/materiallist',function(req,res){


            Utility.getMenuList(req,res,function(menulist) {
                res.render('budget/materiallist', {
                    layout: 'pte/layout-pte',
                    active: 'materiallist',
                    jscript: 'budget/materiallist',
                    menulist:menulist,
                    comparam:Utility.returnCommonParam(req,res)
                })

            });

        });

    /*
    * 案例列表
    */
    router.all('/budget/budgetcaselist',function(req,res){


            Utility.getMenuList(req,res,function(menulist) {
                res.render('budget/budgetcaselist', {
                    layout: 'pte/layout-pte',
                    active: 'budgetcaselist',
                    jscript: 'budget/budgetcaselist',
                    menulist:menulist,
                    comparam:Utility.returnCommonParam(req,res)
                })

            });

        });














}